/*
 * ============================================================================
 * Copyright Notice!
 * ----------------------------------------------------------------------------
 * This file contains proprietary and confidential information belonging to the
 * group of people involvled in developing this project.  Reproduction, disclosure 
 * or use without specific written authorization from project stake holders is 
 * prohibited. Please refer the readme.txt in project installation folder for more
 * specific contacts
 *
 * All rights reserved.
 * ============================================================================
 */
package edu.uwm.universitydb.model;

/**
 * Model class representing <code>Student</type>
 * 
 * @author Shyam Nair
 */
public class Student extends Person
{

    /** attribute holding program */
    private final String mProgram;

    /** attribute holding deptnum */
    private final Department mDept;

    private final String mStrAge;
    /**
     * 
     * @param ssnNum
     * @param age
     * @param name
     * @param program
     * @param deptNum
     */
    public Student(final String ssnNum, final String age, final String name, final String program,
                   final Department dept)
    {
        super(ssnNum, null, name);
        mStrAge = age;
        mProgram = program;
        mDept = dept;
    }

    /**
     * @return Returns the mProgram.
     */
    public String getProgram()
    {
        return mProgram;
    }

    /**
     * @return Returns the mDeptNum.
     */
    public Department getDepartment()
    {
        return mDept;
    }
    
    public String getStrAge()
    {
        return mStrAge;
    }
    /**
     * Overriding get age function
     */
    @Override
    public Integer getAge() {
    	return Integer.parseInt(mStrAge);
    }

}
/*
 * ============================================================================
 * Change History
 * ----------------------------------------------------------------------------
 * Apr 19, 2014   Shyam Nair
 * File created
 * ----------------------------------------------------------------------------
 */